Class AcmeResource

java.lang.Object
org.shredzone.acme4j.AcmeResource
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AcmeJsonResource, Certificate

public abstract class AcmeResource
extends java.lang.Object
implements java.io.Serializable
A generic ACME resource.
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected AcmeResource​(Login login, java.net.URL location)
    Create a new AcmeResource.
  • Method Summary

    Modifier and Type Method Description
    java.net.URL getLocation()
    Gets the resource's location.
    protected Login getLogin()
    Gets the Login this resource is bound with.
    protected Session getSession()
    Gets the Session this resource is bound with.
    void rebind​(Login login)
    Rebinds this resource to a Login.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AcmeResource

      protected AcmeResource​(Login login, java.net.URL location)
      Create a new AcmeResource.
      Parameters:
      login - Login the resource is bound with
      location - Location URL of this resource
  • Method Details

    • getLogin

      protected Login getLogin()
      Gets the Login this resource is bound with.
    • getSession

      protected Session getSession()
      Gets the Session this resource is bound with.
    • rebind

      public void rebind​(Login login)
      Rebinds this resource to a Login.

      Logins are not serialized, because they contain volatile session data and also a private key. After de-serialization of an AcmeResource, use this method to rebind it to a Login.

      Parameters:
      login - Login to bind this resource to
    • getLocation

      public java.net.URL getLocation()
      Gets the resource's location.