/** * Sets the Authenticator version * @param authenticatorVno The Authenticator version to store */ public void setAuthenticatorVno(int authenticatorVno) { setFieldAsInt(AuthenticatorField.AUTHENTICATOR_VNO, authenticatorVno); }
/** * @return The Ticket */ public Ticket getTicket() { return getFieldAs(ApReqField.TICKET, Ticket.class); }
/** * Set the client's microsecond * @param cusec the client's microsecond */ public void setCusec(int cusec) { setFieldAsInt(EncAPRepPartField.CUSEC, cusec); }
/** * @return The client Principal's name */ public PrincipalName getCname() { return getFieldAs(AuthenticatorField.CNAME, PrincipalName.class); }
/** * Sets the Client Principal's name * @param cname The Client Principal's name to store */ public void setCname(PrincipalName cname) { setFieldAs(AuthenticatorField.CNAME, cname); }
/** * Stores the AP-OPTIONS in the message * @param apOptions The AP-OPTIPNS to set */ public void setApOptions(ApOptions apOptions) { setFieldAs(ApReqField.AP_OPTIONS, apOptions); }
/** * @return The encrypted part */ public EncryptedData getEncryptedEncPart() { return getFieldAs(ApRepField.ENC_PART, EncryptedData.class); }
/** * @return The microsecond part of the client's timestamp */ public int getCusec() { return getFieldAsInt(AuthenticatorField.CUSEC); }
/** * @return The encryption key */ public EncryptionKey getSubkey() { return getFieldAs(EncAPRepPartField.SUBKEY, EncryptionKey.class); }
/** * {@inheritDoc} */ @Override public String getName() { return name(); } }
/** * {@inheritDoc} */ @Override public int getValue() { return ordinal(); }
/** * {@inheritDoc} */ @Override public String getName() { return name(); } }
/** * Set the encrypted part into the message * * @param encPart The encrypted part to store */ public void setEncryptedEncPart(EncryptedData encPart) { setFieldAs(ApRepField.ENC_PART, encPart); } }
/** * Set the flags into the container * * @param value The flag as an integer */ public ApOptions(int value) { setFlags(value); } }
/** * {@inheritDoc} */ @Override public String getName() { return name(); }
/** * Sets the The microsecond part of the client's timestamp * @param cusec The microsecond part of the client's timestamp to store */ public void setCusec(int cusec) { setFieldAsInt(AuthenticatorField.CUSEC, cusec); }
/** * @return The AP-OPTIONS set */ public ApOptions getApOptions() { return getFieldAs(ApReqField.AP_OPTIONS, ApOptions.class); }
/** * @return The stored Authorization-Data */ public AuthorizationData getAuthorizationData() { return getFieldAs(AuthenticatorField.AUTHORIZATION_DATA, AuthorizationData.class); }
/** * Sets the client's encryption key * @param subKey The client's encryption key to store */ public void setSubKey(EncryptionKey subKey) { setFieldAs(AuthenticatorField.SUBKEY, subKey); }
/** * Stores the encrypted authenticator in the message * @param encryptedAuthenticator The encrypted authenticator */ public void setEncryptedAuthenticator(EncryptedData encryptedAuthenticator) { setFieldAs(ApReqField.AUTHENTICATOR, encryptedAuthenticator); } }