Tabnine Logo
ApRep.setEncryptedEncPart
Code IndexAdd Tabnine to your IDE (free)

How to use
setEncryptedEncPart
method
in
org.apache.kerby.kerberos.kerb.type.ap.ApRep

Best Java code snippets using org.apache.kerby.kerberos.kerb.type.ap.ApRep.setEncryptedEncPart (Showing top 2 results out of 315)

origin: apache/directory-kerby

private ApRep makeApRep() throws KrbException {
  ApRep apRep = new ApRep();
  EncAPRepPart encAPRepPart = new EncAPRepPart();
  Authenticator auth = apReq.getAuthenticator();
  // This field contains the current time on the client's host.
  encAPRepPart.setCtime(auth.getCtime());
  // This field contains the microsecond part of the client's timestamp.
  encAPRepPart.setCusec(auth.getCusec());
  encAPRepPart.setSubkey(auth.getSubKey());
  encAPRepPart.setSeqNumber(0);
  apRep.setEncRepPart(encAPRepPart);
  EncryptedData encPart = EncryptionUtil.seal(encAPRepPart, auth.getSubKey(), KeyUsage.AP_REP_ENCPART);
  apRep.setEncryptedEncPart(encPart);
  return apRep;
}
origin: org.apache.kerby/kerb-common

private ApRep makeApRep() throws KrbException {
  ApRep apRep = new ApRep();
  EncAPRepPart encAPRepPart = new EncAPRepPart();
  Authenticator auth = apReq.getAuthenticator();
  // This field contains the current time on the client's host.
  encAPRepPart.setCtime(auth.getCtime());
  // This field contains the microsecond part of the client's timestamp.
  encAPRepPart.setCusec(auth.getCusec());
  encAPRepPart.setSubkey(auth.getSubKey());
  encAPRepPart.setSeqNumber(0);
  apRep.setEncRepPart(encAPRepPart);
  EncryptedData encPart = EncryptionUtil.seal(encAPRepPart, auth.getSubKey(), KeyUsage.AP_REP_ENCPART);
  apRep.setEncryptedEncPart(encPart);
  return apRep;
}
org.apache.kerby.kerberos.kerb.type.apApRepsetEncryptedEncPart

Javadoc

Set the encrypted part into the message

Popular methods of ApRep

  • <init>
    Creates an instance of ApRep
  • getEncRepPart
  • getEncryptedEncPart
  • getMsgType
  • getPvno
  • setEncRepPart
    Set the decrypted EncRepPart into the message
  • decode
  • encode
  • encodingLength
  • getFieldAs
  • setFieldAs
  • setFieldAs

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now