📄 securityservice.html
字号:
<A NAME="PROPERTY_INPUT_CONFIDENTIALITY"><!-- --></A><H3>PROPERTY_INPUT_CONFIDENTIALITY</H3><PRE>static final byte <B>PROPERTY_INPUT_CONFIDENTIALITY</B></PRE><DL><DD>This security property provides input confidentiality through encryption of the incoming command. Note that this is a bit mask and security properties can be combined by simply adding them together.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PROPERTY_INPUT_CONFIDENTIALITY">Constant Field Values</A></DL></DL><HR><A NAME="PROPERTY_INPUT_INTEGRITY"><!-- --></A><H3>PROPERTY_INPUT_INTEGRITY</H3><PRE>static final byte <B>PROPERTY_INPUT_INTEGRITY</B></PRE><DL><DD>This security property provides input integrity through MAC signature checking of the incoming command. Note that this is a bit mask and security properties can be combined by simply adding them together.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PROPERTY_INPUT_INTEGRITY">Constant Field Values</A></DL></DL><HR><A NAME="PROPERTY_OUTPUT_CONFIDENTIALITY"><!-- --></A><H3>PROPERTY_OUTPUT_CONFIDENTIALITY</H3><PRE>static final byte <B>PROPERTY_OUTPUT_CONFIDENTIALITY</B></PRE><DL><DD>This security property provides output confidentiality through encryption of the outgoing response. Note that this is a bit mask and security properties can be combined by simply adding them together.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PROPERTY_OUTPUT_CONFIDENTIALITY">Constant Field Values</A></DL></DL><HR><A NAME="PROPERTY_OUTPUT_INTEGRITY"><!-- --></A><H3>PROPERTY_OUTPUT_INTEGRITY</H3><PRE>static final byte <B>PROPERTY_OUTPUT_INTEGRITY</B></PRE><DL><DD>This security property provides output integrity through MAC signature generation for the outgoing response. Note that this is a bit mask and security properties can be combined by simply adding them together.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PROPERTY_OUTPUT_INTEGRITY">Constant Field Values</A></DL></DL><HR><A NAME="PRINCIPAL_CARDHOLDER"><!-- --></A><H3>PRINCIPAL_CARDHOLDER</H3><PRE>static final short <B>PRINCIPAL_CARDHOLDER</B></PRE><DL><DD>The principal identifier for the cardholder.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PRINCIPAL_CARDHOLDER">Constant Field Values</A></DL></DL><HR><A NAME="PRINCIPAL_CARD_ISSUER"><!-- --></A><H3>PRINCIPAL_CARD_ISSUER</H3><PRE>static final short <B>PRINCIPAL_CARD_ISSUER</B></PRE><DL><DD>The principal identifier for the card issuer.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PRINCIPAL_CARD_ISSUER">Constant Field Values</A></DL></DL><HR><A NAME="PRINCIPAL_APP_PROVIDER"><!-- --></A><H3>PRINCIPAL_APP_PROVIDER</H3><PRE>static final short <B>PRINCIPAL_APP_PROVIDER</B></PRE><DL><DD>The principal identifier for the application provider.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javacard.framework.service.SecurityService.PRINCIPAL_APP_PROVIDER">Constant Field Values</A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="isAuthenticated(short)"><!-- --></A><H3>isAuthenticated</H3><PRE>boolean <B>isAuthenticated</B>(short principal) throws <A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></PRE><DL><DD>Checks whether or not the specified principal is currently authenticated. The validity timeframe (selection or reset) and authentication method as well as the exact interpretation of the specified principal parameter needs to be detailed by the implementation class. The only generic guarantee is that the authentication has been performed in the current card session.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>principal</CODE> - an identifier of the principal that needs to be authenticated<DT><B>Returns:</B><DD>true if the expected principal is authenticated<DT><B>Throws:</B><DD><CODE><A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></CODE> - with the following reason code:<ul> <li><code>ServiceException.ILLEGAL_PARAM</code> if the specified principal is unknown. </ul></DL></DD></DL><HR><A NAME="isChannelSecure(byte)"><!-- --></A><H3>isChannelSecure</H3><PRE>boolean <B>isChannelSecure</B>(byte properties) throws <A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></PRE><DL><DD>Checks whether a secure channel is established between the card and the host for the ongoing session that guarantees the indicated properties.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>properties</CODE> - the required properties<DT><B>Returns:</B><DD>true if the required properties are true, false otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></CODE> - with the following reason code:<ul> <li><code>ServiceException.ILLEGAL_PARAM</code> if the specified property is unknown. </ul></DL></DD></DL><HR><A NAME="isCommandSecure(byte)"><!-- --></A><H3>isCommandSecure</H3><PRE>boolean <B>isCommandSecure</B>(byte properties) throws <A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></PRE><DL><DD>Checks whether a secure channel is in use between the card and the host for the ongoing command that guarantees the indicated properties. The result is only correct after pre-processing the command (for instance during the processing of the command). For properties on incoming data, the result is guaranteed to be correct; for outgoing data, the result reflects the expectations of the client software, with no other guarantee.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>properties</CODE> - the required properties<DT><B>Returns:</B><DD>true if the required properties are <CODE>true</CODE>, <CODE>false</CODE> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../../javacard/framework/service/ServiceException.html" title="class in javacard.framework.service">ServiceException</A></CODE> - with the following reason code:<ul> <li><code>ServiceException.ILLEGAL_PARAM</code> if the specified property is unknown. </ul></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SecurityService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java Card </b><br><font size="-1">v2.2.2</font></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javacard/framework/service/RMIService.html" title="class in javacard.framework.service"><B>PREV CLASS</B></A> <A HREF="../../../javacard/framework/service/Service.html" title="interface in javacard.framework.service"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javacard/framework/service/SecurityService.html" target="_top"><B>FRAMES</B></A> <A HREF="SecurityService.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,<br>Santa Clara, CA, 95054, U.S.A. All Rights Reserved.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -